$border-color: #dcdfe6;
$success-bg-color: #f0f9eb;
$success-hover-bg-color: #e1f3d8;

body {
  height: 100%;
  padding: 0;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

li {
  list-style: none;
}

.flex-sb {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

// 隐藏input.type = number 框中右侧的上下箭头
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type="number"] {
  -moz-appearance: textfield;
}

// element样式修改
.formPage {
  .el-main {
    padding: 0;
  }

  .el-form-item {
    margin-bottom: 0px;
  }

  .el-tabs__item {
    height: 49px;
    line-height: 49px;
  }
  .el-tabs__header {
    margin: 0;
  }

  .formConfig {
    .el-form-item {
      padding-bottom: 5px;
      border-bottom: 1px solid $border-color;
      margin-bottom: 10px;
    }

    .el-form-item__label {
      line-height: 20px;
    }
    .el-radio {
      margin-bottom: 10px;
    }
    .el-date-editor {
      width: 248px;
    }
    .el-checkbox {
      margin-right: 20px;
    }
  }
  .itemPage {
    .el-rate {
      height: 32px;
      line-height: 42px;
    }
    .el-divider__text {
      background-color: $success-bg-color;
    }
    .el-tabs__nav-wrap::after {
      background-color: #fff;
    }
    .el-slider__runway {
      margin-top: 14px;
      margin-bottom: 14px;
    }
  }
  .active .el-divider__text {
    background-color: $success-hover-bg-color;
  }
}

.showFormPage {
  .el-form-item {
    margin-bottom: 15px;
  }
  .el-slider__runway {
    margin-top: 14px;
    margin-bottom: 14px;
  }
  .el-rate {
    height: 32px;
    line-height: 42px;
  }
}
.showFormLayouPage {
  .el-tabs__content {
    padding-top: 15px;
  }
  .tab-form-itme {
    .el-radio,
    .el-checkbox {
      margin-right: 5px;
      .el-radio__label,
      .el-checkbox__label {
        padding-left: 4px;
      }
    }
    .el-date-editor.el-input {
      width: 200px;
    }
    .el-date-editor--timerange.el-input__inner {
      width: 200px;
    }
    .el-range-editor.el-input__inner {
      padding: 3px 5px;
    }
  }
}
.showFormDialogPage {
  .el-dialog__body {
    min-height: calc(100vh - 200px);
  }
}
